package com.pactera.madp.cp.mapper.prod;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pactera.madp.cp.api.entity.prod.ProdEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 华融湘江产品管理mapper
 *
 * @author HuHao
 * @date 2022/3/16 9:31
 */
public interface ProdMapper extends BaseMapper<ProdEntity> {

    IPage<ProdEntity> product(
            Page page,
            @Param("status") Integer status,
            @Param("corpId") Integer corpId,
            @Param("deptIds") List<Integer> deptIds
    );

    IPage<ProdEntity> other(
            Page page,
            @Param("status") Integer status,
            @Param("type") Integer type,
            @Param("corpId") Integer corpId,
            @Param("deptIds") List<Integer> deptIds,
            @Param("now") DateTime now
    );

    IPage<ProdEntity> other1(
            Page page,
            @Param("status") Integer status,
            @Param("type") Integer type,
            @Param("corpId") Integer corpId,
            @Param("riskLevel") Integer riskLevel,
            @Param("prdAttr") String prdAttr,
            @Param("searchStr") String searchStr
    );

    List<ProdEntity> otherFinance(
            @Param("status") Integer status,
            @Param("corpId") Integer corpId,
            @Param("now") DateTime now
    );

}
